
<template>
  <div class="course-name">
    <span class="course-name-item">{{courseName}}</span>
  </div>
</template>
<script setup>
import {onMounted, ref, watch, computed} from 'vue'
const props = defineProps({ scope: {
    default: ''
  } })
const courseName = computed( () => {
  return props.scope.courseName
})
// const setCourseName = () => {
//   courseName.value = props.scope.courseName
// }

// onMounted(() => {
//   setCourseName()

// })
</script>

<style >
.course-name {
  position: relative;
  margin: auto;
  height: 20px;
  color: #409EFF;
  font-size: 14px;
  padding: 0 8px;
  text-align: center;
  opacity: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}
.course-name-item {
  padding: 0 8px;
  border: 1px solid #D9ECFF;
  border-radius: 2px;
  background-color: #ECF5FF;
}
</style>

